// JavaScript Document
<!--JavaScript-tab-->
     function secBoard(n)
  {
    for(i=0;i<H8_Tab_v3_secTable.cells.length-1;i++)
      H8_Tab_v3_secTable.cells[i].className="sec1_3";
    H8_Tab_v3_secTable.cells[n].className="sec2_3";
    for(i=0;i<mainTable.tBodies.length;i++)
      mainTable.tBodies[i].style.display="none";
    mainTable.tBodies[n].style.display="block";
  }
<!--JavaScript-msg-->
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
/*
Function:
     Build Tab
In parameter:
    Array contains Object {Tab:"",OpEle:""}
Author:
    denny
*/
$.extend({
    dTab:function(options){
        if(options){
            if(options.length>0){
                if(!(options[0].Tab && options[0].OpEle)) return;//if has property to continue tab op
                window.PageTab=options;
                $(options).each(function(){
                    $("#"+this.Tab).attr("tgEle",this.OpEle);
                    $("#"+this.Tab).click(function(){
                        //alert(item.OpEle);AllTab
                        if(window.PageTab){
                            $(window.PageTab).each(function(){
                                $("#"+this.Tab).removeClass("sec2_3").addClass("sec1_3");
                                $("#"+this.OpEle).css("display","none");
                            });
                            $(this).addClass("sec2_3");
                            $("#"+$(this).attr("tgEle")).css("display","block");
                        }
                    });
                });
            }
        }
    }
});